package client;

import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

public class ToCritListener implements ListSelectionListener{

	private FilterPanel fp;
	
	public ToCritListener(FilterPanel fp){
		this.fp = fp;
	}
	
	public void valueChanged(ListSelectionEvent e) {
		Client.c.setCenter(new CriteriaPanel(fp.getSelectedValue()));
	}
	
}
